import fetch from '@/utils/request'

export function login(data) {
  return fetch({
    url: '/managers/login',
    method: 'post',
    data
  })
}


export function getInfo(token) {
  return fetch({
    url: '/user/info',
    method: 'get',
    params: {token}
  })
}